import React, { Component, Fragment } from 'react';
import { Tabs } from 'antd';
import Tjfx from './Tjfx';
import YqybTjfx from './components/Yqyb/YqybTjfx';
import PipingRoadForStatistic from './components/PipingRoad/PipingRoadForStatistic';
import styles from './statistic.less';
import { connect } from 'dva';
const TabPane = Tabs.TabPane;
@connect(({ global }) => ({
  currentUrl: global.currentUrl,
}))
class statistic extends Component {

  componentWillMount() {
    const { dispatch, match } = this.props;
    dispatch({ type: 'global/fetchUrl', payload: match.url });
  }
  render() {
    return (
      <div style={{ padding: '10px' }}>
        <Tabs defaultActiveKey="1">
          <TabPane tab="一路一表" key="1" >
            <Tjfx />
          </TabPane>
          <TabPane tab="一桥一表" key="2" >
            <YqybTjfx />
          </TabPane>
          <TabPane tab="管道一桥一表" key="3" >
            <PipingRoadForStatistic />
          </TabPane>
        </Tabs>
      </div>
    );
  }
}

export default statistic;
